<template>
  <z-menu v-model:selectedKeys="current" mode="horizontal">
    <z-menu-item key-val="mail">
      <template #icon>
        <mail-outlined />
      </template>
      Navigation One
    </z-menu-item>
    <z-menu-item key-val="app" disabled>
      <template #icon>
        <appstore-outlined />
      </template>
      Navigation Two
    </z-menu-item>
    <z-sub-menu key-val="sub1">
      <template #icon>
        <setting-outlined />
      </template>
      <template #title>Navigation Three - Submenu</template>
      <z-menu-item-group title="Item 1">
        <z-menu-item key-val="setting:1">Option 1</z-menu-item>
        <z-menu-item key-val="setting:2">Option 2</z-menu-item>
      </z-menu-item-group>
      <z-menu-item-group title="Item 2">
        <z-menu-item key-val="setting:3">Option 3</z-menu-item>
        <z-menu-item key-val="setting:4">Option 4</z-menu-item>
      </z-menu-item-group>
    </z-sub-menu>
    <z-menu-item key-val="alipay">
      <a href="https://antdv.com" target="_blank" rel="noopener noreferrer">
        Navigation Four - Link
      </a>
    </z-menu-item>
  </z-menu>
</template>

<script>
import { defineComponent, ref } from 'vue'

export default defineComponent({
  setup() {
    const current = ref(['mail'])
    return {
      current
    }
  }
})
</script>
